package com.vhall.component.controller.preparation.facade;


import com.vhall.component.entity.preparation.vo.ScrollingGetVO;
import com.vhall.component.entity.preparation.vo.ScrollingSaveVO;
import com.vhall.component.entity.preparation.vo.ScrollingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author longzhen.gong
 */
@FeignClient(value = "ScrollingConsoleFacade", path = "/v4/scrolling/console")
public interface ScrollingConsoleFacade {

    /**
     * 保存或者更新跑马灯
     *
     * @param reqVo
     * @return
     */

    @PostMapping(value = "/save-scrolling")
    ScrollingVO saveScroll(@Validated ScrollingSaveVO reqVo);

    /**
     * 查询跑马灯
     *
     * @param vo
     * @return
     */

    @PostMapping(value = "/info")
    ScrollingVO info(@Validated ScrollingGetVO vo);
}
